#include<stdio.h> 
int main(){
	int i=1;
	char str[110]=" ";
	printf("please input str:");
	gets(str+1);
	while(str[i]){
		if((str[i-1]==' ' || str[i-1]=='\t') && 'a'<=str[i] && str[i]<='z'){
			str[i] -=32;
		}
		i++;
	}
	printf("Output:\n");
	puts(str+1);
	return 0;
} 
